package com.sj.purchase.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 描述: 日志打印.统一调用方法
 * 包名: com.sanji.mall.util.
 * 作者: barton.
 * 日期: 16-12-18.
 * 项目名称: sanji
 * 版本: 1.0
 * JDK: since 1.8
 */
public class LogUtil {

  static Logger logger = LoggerFactory.getLogger(LogUtil.class);

  public static void info(String message) {
    logger.info(message);
  }

  public static void info(String format, Object... args) {
    logger.info(format, args);
  }

  public static void debug(String message) {
    logger.debug(message);
  }

  public static void debug(String format, Object... args) {
    logger.debug(format, args);
  }

  public static void error(String message, Throwable throwable) {
    logger.error(message, throwable);
  }

  public static void error(String format, Object... args) {
    logger.error(format, args);
  }
}
